package com.square.service.common.consts;

import org.apache.tomcat.util.net.openssl.ciphers.Authentication;
import org.springframework.beans.factory.annotation.Required;

/**
 * @author : 18.40
 * @date : 2020/8/11 16:27
 * @description : 全局状态码
 */
public class GlobalStatusCode {
    //执行成功
    public static final long SUCCESS = 0L;
    //操作失败
    public static final long FAILED = -1L;
    //数据库异常
    public static final long DATABASE_EXCEPTION = 506L;
    //404
    public static final long NOT_FOUND = 404L;
    //服务器内部错误
    public static final long INTERNAL_SERVER_ERROR = 500L;
    //参数空指针
    public static final long PARAMETER_NULL_POINT_EXCEPTION = 412L;
    //结果集空指针
    public static final long RESULT_NULL_POINT_EXCEPTION = 410L;
    //微服务异常
    public static final long SERVICE_EXCEPTION = 503L;
    //未经授权
    public static final long UNAUTHORIZED = 401L;
    //需要代理身份验证
    public static final long PROXY_AUTHENTICATION_REQUIRED = 407L;
}
